using UnityEngine;
using UnityEngine.UI;

public class SkinsScreen : UIScreen
{
	public Button playButton;

	public GameObject startBiggerPanel;

	public Button startButton;

	public Button startBiggerButton;

	public Button closeButton;

	protected override void OnEnable()
	{
		base.OnEnable();
	}

	protected override void OnDisable()
	{
		base.OnDisable();
	}


	public override void ShowScreen()
	{
		base.ShowScreen();
		{
			startBiggerPanel.SetActive(false);
			playButton.gameObject.SetActive(true);
		}
	}

	private void Start()
	{
		closeButton.onClick.AddListener(UIScreenController.instance.OpenMenu);
		playButton.onClick.AddListener(Handle_PlayButtonClick);
		startButton.onClick.AddListener(Handle_PlayButtonClick);
		startBiggerButton.onClick.AddListener(Handle_StartBiggerButtonClick);
	}

	private void Handle_PlayButtonClick()
	{
		GameManager.Instance.StartGame();
		AnalyticManager.SendEvent(AnalyticManager.PlayButtonClicked);
	}

	private void Handle_StartBiggerButtonClick()
	{
		AnalyticManager.SendEvent(AnalyticManager.StartBiggerButtonClicked);
	}
}
